﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuYiAdmin.Net.UniversalFoundation.Configurations
{
    /// <summary>
    /// Minio配置
    /// </summary>
    public class MinioConfig
    {
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; } = false;

        /// <summary>
        /// Minio服务器地址
        /// </summary>
        public string Endpoint { get; set; } = string.Empty;

        /// <summary>
        /// Minio访问密钥
        /// </summary>
        public string AccessKey { get; set; } = string.Empty;

        /// <summary>
        /// Minio私有密钥
        /// </summary>
        public string SecretKey { get; set; } = string.Empty;

        /// <summary>
        /// 存储桶名称
        /// </summary>
        public string BucketName { get; set; } = string.Empty;

        /// <summary>
        /// 文件预览地址
        /// </summary>
        public string KkFileViewUrl { get; set; } = string.Empty;

        /// <summary>
        /// 文件预览过期时间，单位：秒
        /// </summary>
        public int PresignedUrlExpiryTime { get; set; }
    }
}
